'use strict'

module.exports = appInfo => {
  const config = exports = {}

  // use for cookie sign key, should change to your own and keep security
  config.keys = appInfo.name + '_1525862516758_9048'

  // add your config here
  config.middleware = ['handleError', 'loader', 'page', 'filter']
  // 安全配置
  config.security = {
    csrf: {
      enable: false,
    },
  }
  // 数据库
  config.mongoose = {
    url: 'mongodb://127.0.0.1/leave-backend',
    options: {},
  }
  config.bodyParser = {
    jsonLimit: '2mb',
    formLimit: '2mb',
  }
  return config
}
